<div class="filter2">
    <div class="item f1" style="width: 150px;">
        <select data-am-selected="{maxHeight: 300}">
        </select>
    </div>
    <div class="item f2">
        <button>刷新</button>
    </div>
</div>

<div class="scroll-data">
    <div class="for-scroll"></div>
<div>
    
</div></div>
<style type="text/css">
    .filter2 {
        height: 49px;
    }
    .filter2 .item {
        display: inline-block;
        line-height: 30px;
        margin: 9px 5px 0px 10px;
    }
    .filter2 .am-selected {
        width: 100%;
    }
    .filter2 .am-selected-btn {
        background-color: rgba(0, 0, 0, 0.2);
        line-height: 30px;
        text-align: center;
        padding-top: 0px;
        padding-bottom: 0px;
        border-radius: 3px;
        border: 1px solid rgba(250,250,250,0.44);
        color: #fff;
        font-size: 0.6rem;
    }
    .filter2 .am-selected-list {
        font-size: 0.6rem;
        line-height: 1rem;
    }
    .filter2 .f2 button {
        background-color: rgba(250,252,250,.1);
        border: 0;
        color: #fafafa;
        box-shadow: inset 0 0 3px rgba(250,250,250,.5),0 0 5px rgba(0,0,0,.5);
        border-radius: 2px;
        padding: 0px 0.4rem 0px 0.4rem;
        height: 28px;
        line-height: 28px;
        font-size: 0.6rem;
    }

    .scroll-data table {
        width: 100%;
    }
    .scroll-data {
        position: absolute;
        left: 0px;
        right: 0px;
        top: 50px;
        bottom: 0px;
        overflow: hidden;
    }

    table.types td {
        text-align: center;
        color: #fff;
        background-color: rgba(255,255,255,0.2);
        box-shadow: inset -1px 1px 0 0 rgba(255,255,255,.21), 1px 1px 0 0 rgba(0,0,0,.13);
        font-size: 0.6rem;
        line-height: 44px;
    }
    table.types td.active {
        box-shadow: inset -1px 3px 7px rgba(0,0,0,.28);
    }

    table.list {
        min-width: 100%;
        width: auto;
        overflow-x: auto;
    }
    table.list td { 
        background-color: rgba(255,255,255,0.05);
        vertical-align: top;
        padding: 7px 0px 7px 0px;
        min-height: 40px;
        text-align: center;
        color: #fff;
        font-size: 0.6rem;
        border-bottom: 1px solid rgba(255,255,255,0.47);
        box-shadow: inset 1px 1px 0 rgba(250,250,250,.47);
        line-height: 20px;
        min-width: 1.3rem;
        width: 4%;
    }
    .s-container {
        width: 100%;
        overflow-x: hidden;
    }
</style>

<script>
    $("#center-top .home").hide();
    $("#center-top .back").show();
    $("#center-top .menu").hide();

    // 填充游戏
    var s = $(".f1 select");
    s.empty();
    var games = get_game_list();
    for (var i in games) {
        var g = games[i];
        s.append("<option value='" + g + "'>" + get_game_display_name(g) + "</option>");
    }
    s.val(game);
    s.trigger('changed.selected.amui');
    s.change(loadLuZhu);
    $(".filter2 .f2 button").click(loadLuZhu);

    function loadLuZhu() {
        var g2 = $(".f1 select").val();
        context.center.game = g2;
        if (g2 == 'bjpk10' || g2 == 'zypk10')
            switch_page("luzhu/bjpk10", $(".scroll-data .for-scroll"));
        if (g2 == "bjkl8" || g2 == "zykl8")
            switch_page("luzhu/bjkl8", $(".scroll-data .for-scroll"));
        if (g2 == "cqkl10" || g2 == "gdkl10" || g2 == "zykl10")
            switch_page("luzhu/cqkl10", $(".scroll-data .for-scroll"));
        if (g2 == "gd115" || g2 == "zy115")
            switch_page("luzhu/gd115", $(".scroll-data .for-scroll"));
        if (g2 == "cqssc" || g2 == "xjssc" || g2 == "tjssc" || g2 == "zyssc" || g2 == 'ffcqq')
            switch_page("luzhu/cqssc", $(".scroll-data .for-scroll"));
        if (g2 == 'lhc' || g2 == 'jsk3' || g2 == "zyk3")
            switch_page("luzhu/unexist", $(".scroll-data .for-scroll"));
    }
    loadLuZhu();

    var _mainScroll;
    $(function() {
        _mainScroll = new IScroll(".scroll-data", {
            scrollX: false,
            scrollY: true,
            click: true,
        })
    });
    setInterval(function() {
        if (_mainScroll) _mainScroll.refresh();
    }, 1000);
</script>